#pragma once;

#include "common.h"

#include "particle.h"


class IForceGenerator
{
public:
	virtual void update(SpringBody *b, double dt) = 0;
};

class GravityForce : public IForceGenerator
{
public:
	GravityForce();
	GravityForce(real x, real y);
	Vec2f gravitySourcePos;
	virtual void update(SpringBody *b, double dt);
};

class ThrustGenerator : public IForceGenerator
{
public:
	ThrustGenerator();
	real timeLeft;
	Vec2f thrustDir;
	virtual void update(SpringBody *b, double dt);
};

